const { subjectModel } = require("../models/subjectModel");

async function getSubject (req, res, next){
    let subject = await subjectModel.find({});
    res.send(subject);
}
module.exports = {getSubject}